<!DOCTYPE html>
<html lang="en-us">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <title>Holly Shit Fker</title>
	<meta name="apple-mobile-web-app-capable" content="yes" />
	<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
	<meta name="browsermode" content="application">
	<meta name="full-screen" content="yes" />
	<meta name="x5-fullscreen" content="true" />
	<meta name="x5-page-mode" content="app" />
	<meta name="360-fullscreen" content="true" />	
	<style>
		html,body{
			padding:0;
			margin:0;
		}
		.main{
			width:100%;
			height:100vh;
			display:flex;
		}
	</style>
  </head>
  <body>
	<div class="main">
		<iframe id="lm" name="lm" style="display:none;width: 100%;height: 100%;"></iframe>
	</div>
	
	<script src="http://www.shdjt.com/js/lib/astock.js"></script>
	<script>
		function getUrlParamCN(name) {
			var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); 
			var r = decodeURI(window.location.search).substr(1).match(reg); 
			if (r != null) return unescape(r[2]); return null; 
		}
		function searchLeftList(nameCN){
			let ilm = document.querySelector('#lm');
			if(ilm){
				ilm.src = 'https://im.aidvq.com/cx/view-crp/?gpname='+nameCN;
			}
			ilm.style.display='';			
		}
		window.onload=function(){
			var query_code = getUrlParamCN('code');
			if(query_code){
				var rr = new RegExp(`${query_code}`);
				rr.ignoreCase=true;
				rr.global = true;
				if(rr.test(astock_suggest)){					
					rr = new RegExp("~"+query_code+"`(.*?)`");
					var fr = astock_suggest.match(rr);
					if(fr && fr.length>0){
						searchLeftList(fr[1]);					
					}else if(/\d{6}/gi.test(query_code)){
						searchLeftList(query_code);
					}else{
						console.log('no data matched!');
					}					
				}
			}		
			
		}
	</script>
  </body>
</html>